package com.scap.dfs.dao;

import java.util.List;

import com.scap.dfs.model.DailyCalFormulaConfig;
import com.scap.dfs.model.DailyCalFormulaConfigPK;


public interface DailyCalFormulaConfigDao {
	
	public boolean insert(DailyCalFormulaConfig dailyCalFormulaConfig);
	
	public boolean update(DailyCalFormulaConfig dailyCalFormulaConfig);
	
	public boolean delete(DailyCalFormulaConfigPK pk);
	
	public DailyCalFormulaConfig findById(DailyCalFormulaConfigPK pk);
	
	public List<DailyCalFormulaConfig> getLisByHospitalCodeAndFormulaId(String hospitalCode,int formulaId);
	
	public List getListPerPage(int amount,int page,String orderByColumnName,String ascOrDesc);

	public List findByAttribute(DailyCalFormulaConfig dailyCalFormulaConfig);
	
	public List findByAttributePerPage(DailyCalFormulaConfig dailyCalFormulaConfig,int amount,int page,String orderByColumnName,String ascOrDesc);

	public String getAttributeNameByColumnName(String columnName);
	
}
